﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200021B RID: 539
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueDice : IMessage<ChessRogueDice>, IMessage, IEquatable<ChessRogueDice>, IDeepCloneable<ChessRogueDice>, IBufferMessage
	{
		// Token: 0x17000708 RID: 1800
		// (get) Token: 0x06001823 RID: 6179 RVA: 0x00044953 File Offset: 0x00042B53
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueDice> Parser
		{
			get
			{
				return ChessRogueDice._parser;
			}
		}

		// Token: 0x17000709 RID: 1801
		// (get) Token: 0x06001824 RID: 6180 RVA: 0x0004495A File Offset: 0x00042B5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueDiceReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700070A RID: 1802
		// (get) Token: 0x06001825 RID: 6181 RVA: 0x0004496C File Offset: 0x00042B6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueDice.Descriptor;
			}
		}

		// Token: 0x06001826 RID: 6182 RVA: 0x00044973 File Offset: 0x00042B73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDice()
		{
		}

		// Token: 0x06001827 RID: 6183 RVA: 0x00044988 File Offset: 0x00042B88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDice(ChessRogueDice other) : this()
		{
			this.nKBEEPKDJGI_ = other.nKBEEPKDJGI_;
			this.branchId_ = other.branchId_;
			this.surfaceList_ = other.surfaceList_.Clone();
			this.lIKPOIKKNKL_ = other.lIKPOIKKNKL_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001828 RID: 6184 RVA: 0x000449E1 File Offset: 0x00042BE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDice Clone()
		{
			return new ChessRogueDice(this);
		}

		// Token: 0x1700070B RID: 1803
		// (get) Token: 0x06001829 RID: 6185 RVA: 0x000449E9 File Offset: 0x00042BE9
		// (set) Token: 0x0600182A RID: 6186 RVA: 0x000449F1 File Offset: 0x00042BF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NKBEEPKDJGI
		{
			get
			{
				return this.nKBEEPKDJGI_;
			}
			set
			{
				this.nKBEEPKDJGI_ = value;
			}
		}

		// Token: 0x1700070C RID: 1804
		// (get) Token: 0x0600182B RID: 6187 RVA: 0x000449FA File Offset: 0x00042BFA
		// (set) Token: 0x0600182C RID: 6188 RVA: 0x00044A02 File Offset: 0x00042C02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BranchId
		{
			get
			{
				return this.branchId_;
			}
			set
			{
				this.branchId_ = value;
			}
		}

		// Token: 0x1700070D RID: 1805
		// (get) Token: 0x0600182D RID: 6189 RVA: 0x00044A0B File Offset: 0x00042C0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ChessRogueDiceSurfaceInfo> SurfaceList
		{
			get
			{
				return this.surfaceList_;
			}
		}

		// Token: 0x1700070E RID: 1806
		// (get) Token: 0x0600182E RID: 6190 RVA: 0x00044A13 File Offset: 0x00042C13
		// (set) Token: 0x0600182F RID: 6191 RVA: 0x00044A1B File Offset: 0x00042C1B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LIKPOIKKNKL
		{
			get
			{
				return this.lIKPOIKKNKL_;
			}
			set
			{
				this.lIKPOIKKNKL_ = value;
			}
		}

		// Token: 0x06001830 RID: 6192 RVA: 0x00044A24 File Offset: 0x00042C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueDice);
		}

		// Token: 0x06001831 RID: 6193 RVA: 0x00044A34 File Offset: 0x00042C34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueDice other)
		{
			return other != null && (other == this || (this.NKBEEPKDJGI == other.NKBEEPKDJGI && this.BranchId == other.BranchId && this.surfaceList_.Equals(other.surfaceList_) && this.LIKPOIKKNKL == other.LIKPOIKKNKL && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001832 RID: 6194 RVA: 0x00044AA4 File Offset: 0x00042CA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.NKBEEPKDJGI != 0U)
			{
				num ^= this.NKBEEPKDJGI.GetHashCode();
			}
			if (this.BranchId != 0U)
			{
				num ^= this.BranchId.GetHashCode();
			}
			num ^= this.surfaceList_.GetHashCode();
			if (this.LIKPOIKKNKL != 0U)
			{
				num ^= this.LIKPOIKKNKL.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001833 RID: 6195 RVA: 0x00044B23 File Offset: 0x00042D23
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001834 RID: 6196 RVA: 0x00044B2B File Offset: 0x00042D2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001835 RID: 6197 RVA: 0x00044B34 File Offset: 0x00042D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BranchId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.BranchId);
			}
			if (this.LIKPOIKKNKL != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.LIKPOIKKNKL);
			}
			this.surfaceList_.WriteTo(ref output, ChessRogueDice._repeated_surfaceList_codec);
			if (this.NKBEEPKDJGI != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.NKBEEPKDJGI);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001836 RID: 6198 RVA: 0x00044BBC File Offset: 0x00042DBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.NKBEEPKDJGI != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NKBEEPKDJGI);
			}
			if (this.BranchId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BranchId);
			}
			num += this.surfaceList_.CalculateSize(ChessRogueDice._repeated_surfaceList_codec);
			if (this.LIKPOIKKNKL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LIKPOIKKNKL);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001837 RID: 6199 RVA: 0x00044C40 File Offset: 0x00042E40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueDice other)
		{
			if (other == null)
			{
				return;
			}
			if (other.NKBEEPKDJGI != 0U)
			{
				this.NKBEEPKDJGI = other.NKBEEPKDJGI;
			}
			if (other.BranchId != 0U)
			{
				this.BranchId = other.BranchId;
			}
			this.surfaceList_.Add(other.surfaceList_);
			if (other.LIKPOIKKNKL != 0U)
			{
				this.LIKPOIKKNKL = other.LIKPOIKKNKL;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001838 RID: 6200 RVA: 0x00044CB5 File Offset: 0x00042EB5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001839 RID: 6201 RVA: 0x00044CC0 File Offset: 0x00042EC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 40U)
					{
						this.BranchId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.LIKPOIKKNKL = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 74U)
					{
						this.surfaceList_.AddEntriesFrom(ref input, ChessRogueDice._repeated_surfaceList_codec);
						continue;
					}
					if (num == 80U)
					{
						this.NKBEEPKDJGI = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040009FD RID: 2557
		private static readonly MessageParser<ChessRogueDice> _parser = new MessageParser<ChessRogueDice>(() => new ChessRogueDice());

		// Token: 0x040009FE RID: 2558
		private UnknownFieldSet _unknownFields;

		// Token: 0x040009FF RID: 2559
		public const int NKBEEPKDJGIFieldNumber = 10;

		// Token: 0x04000A00 RID: 2560
		private uint nKBEEPKDJGI_;

		// Token: 0x04000A01 RID: 2561
		public const int BranchIdFieldNumber = 5;

		// Token: 0x04000A02 RID: 2562
		private uint branchId_;

		// Token: 0x04000A03 RID: 2563
		public const int SurfaceListFieldNumber = 9;

		// Token: 0x04000A04 RID: 2564
		private static readonly FieldCodec<ChessRogueDiceSurfaceInfo> _repeated_surfaceList_codec = FieldCodec.ForMessage<ChessRogueDiceSurfaceInfo>(74U, ChessRogueDiceSurfaceInfo.Parser);

		// Token: 0x04000A05 RID: 2565
		private readonly RepeatedField<ChessRogueDiceSurfaceInfo> surfaceList_ = new RepeatedField<ChessRogueDiceSurfaceInfo>();

		// Token: 0x04000A06 RID: 2566
		public const int LIKPOIKKNKLFieldNumber = 6;

		// Token: 0x04000A07 RID: 2567
		private uint lIKPOIKKNKL_;
	}
}
